import yaml


def read_yaml(yaml_path):
    with open(yaml_path, mode="r") as fp:
        return yaml.safe_load(fp)

if __name__ == '__main__':
    yaml_path = "D:\PycharmProjects\SingleLogin_InterfaceTest\data\sql.yaml"
    print(read_yaml(yaml_path)["SQL1"])